package goods

import (
	"weekly-exam-1/config"
	"weekly-exam-1/internal/model/dao"
)

func GoodsList(bank, bigSmall, looks int8) (goodsList []dao.Goods, err error) {
	var list []dao.Goods
	err = config.DB.Where("bank=? or big_small=? or looks=?", bank, bigSmall, looks).Find(&list).Error
	return
}
